<?php $this->load->view('layout/header');?>
<div class="supplier-content-page">
    <div class="product-test-h5">
        <ul class="breadcrumb">
            <li><a href="javascript:;">我的账户</a></li>
            <li class="active"><a href="<?php echo site_url('accountinfo/accountRecord');?>">账户信息</a></li>
        </ul>
        <?php echo execute_alert_message();?>
        <?php $this->load->view('accountinfo/common');?>
        <div class="subject-table">
            <div class="account-record-nav">
                <a href="<?php echo site_url('accountinfo/accountRecord');?>">账户收支</a>
                <a href="<?php echo site_url('accountinfo/carryRecord');?>">提现记录</a>
                <a href="<?php echo site_url('accountinfo/rechargeRecord');?>" class="active">充值记录</a>
                <a href="<?php echo site_url('accountinfo/rebateRecord');?>">返利记录</a>
            </div>
            <?php if ($depositList->num_rows() > 0) :?>
                <table class="table table-bordered">
                    <tr>
                        <th>充值单号</th>
                        <th>商品名称</th>
                        <th>充值金额</th>
                        <th>充值时间</th>
                        <th>状态</th>
                    </tr>
                    <?php foreach ($depositList->result() as $item):?>
                    <tr>
                        <td><?php echo $item->deposit_id;?></td>
                        <td><?php echo '预充值';?></td>
                        <td><?php echo $item->amount;?></td>
                        <td><?php echo $item->created_at;?></td>
                        <td><?php echo ($item->state == 2) ? '充值成功' : '充值失败';?></td>
                    </tr>
                    <?php endforeach;?>
                </table>
                <nav><?php echo $pg_link;?></nav>
            <?php else :?>
                <div class="none-data">暂无数据</div>
            <?php endif;?>
        </div>
    </div>
</div>
<?php $this->load->view('layout/footer');?>